<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>

<!-- THREE STEPS TO INSTALL DATE SELECTION FORM:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the onLoad event handler into the BODY tag
  3.  Put the last coding into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Satish A (sat76to99@yahoo.com) -->
<Script Language="JavaScript">



function populate(inForm)
{
var temp=0;
var today= new Date();
var day= today.getDate();
var month= today.getMonth();
var year= today.getFullYear();


for (var i=0; i <31 ; i++)
	{
	var x= String(i+1);

	inForm.day.options[i] = new Option(x,x);
	}

for (var i=0; i <31 ; i++)
	{
	var d=0;
	d=inForm.day.options[i].value;
	if(d=day){
		inForm.day.options[i].selected=true;
		break;}
	}

for (var j=2009; j <year ; j++)
	{
	var y= String(j);
	inForm.year.options[i] = new Option(y,y);
	}
for(var i=0;i<12;i++)
	{

	if(i=month)
		{inForm.month.options[i].selected=true;
	break;}

	}

}

function populate2(inForm2)
{
var t3=0;


if(inForm2.month.options[1].selected)

t3=28;
else if(inForm2.month.options[8].selected||inForm2.month.options[3].selected||inForm2.month.options[5].selected||inForm2.month.options[10].selected)
t3=30;
else
t3=31;


for(i=0;i<31;i++){
inForm2.day.options[i]=null;
}

for (var i=0; i <t3 ; i++)
	{
	var x= String(i+1);
	inForm2.day.options[i] = new Option(x);

	}
}
</script>

</HEAD>

<!-- STEP TWO: Insert the onLoad event handler into your BODY tag  -->

<BODY onLoad=populate(form1)>

<!-- STEP THREE: Copy this code into the BODY of your HTML document  -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original:  Satish A (sat76to99@yahoo.com) -->
<FORM NAME="form1">
<p>
<b>Day</b>  <SELECT NAME="day"></SELECT>

   <b>Month</b>    <SELECT NAME="month" onChange = populate2(form1)>
<Option value=0>January</Option>
<Option value=1>February</Option>
<Option value=2>March</Option>
<Option value=3>April</Option>
<Option value=4>May</Option>
<Option value=5>June</Option>
<Option value=6>July</Option>
<Option value=7>August</Option>
<Option value=8>September</Option>
<Option value=9>October</Option>
<Option value=10>November</Option>
<Option value=11>December</Option>
</SELECT>

    <b>Year</b>
    <SELECT NAME="year">
    	<option value="2009">2009</option>
    </SELECT>

</FORM>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  2.98 KB -->
</html>